<?php
namespace app\modules\admin\controllers;

class MenuController extends Controller
{
    public function behaviors()
    {
        $behaviors = parent::behaviors();
        $behaviors['access']['only'] = ['index'];
        $behaviors['access']['rules'] = [
            [
                'actions' => ['index'],
                'allow' => true,
                'roles' => ['@'],
            ]
        ];
        return $behaviors;
    }
    public function actionIndex($id)
    {
        var_dump($id);
    }
}